package org.fitweb.examples;

import fitlibrary.DoFixture;
import fitlibrary.SetFixture;

import java.util.List;

import static java.util.Arrays.asList;

@SuppressWarnings("unused") // Fit
public class MyFixture extends DoFixture {

    @SuppressWarnings("unused") // Fit
    public boolean givenQueuedMessage(String relativePath) {
        // Load the message into the queue
        return true;
    }

    @SuppressWarnings("unused") // Fit
    public boolean processMessageFromQueue() {
        // Call your app code here
        return true;
    }

    @SuppressWarnings("unused") // Fit
    public SetFixture checkQueueSizes() {
        return new SetFixture(getQueueStats());
    }

    private List<QueueStats> getQueueStats() {
        return asList(new QueueStats());
    }

    private class QueueStats {
        String queueName;
        int size;
    }
}
